package com.dcy.feign;

import com.dcy.common.model.ResponseData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Auther: dcy
 * @Date: 2019/3/22 16:23
 * @Description:
 */
@FeignClient(name = "test-service", fallback = TestServiceFallback.class)
public interface TestService {

    @GetMapping("/sayHello/{string}")
    ResponseData sayHello(@PathVariable String string);
}
